package com.itdd.mapper;

import com.itdd.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> searchAll();

    User searchByUserAccount(@Param("userAccount") int userAccount);

    void addUser(User user);

    void deleteByUserNum(@Param("userNum") int userNum);

    boolean selectUserByMes(@Param("userAccount") int userAccount, @Param("userPassword") int userPassword);
}
